﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Security;

namespace Konekcija.Core.Reporting.Mappings.Security
{
    public class UserToGroupMap : ClassMap<UserToGroup>
    {
        public UserToGroupMap()
        {
            Schema("security");
            Table("UsersToGroups");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.UserId).Not.Nullable();
            Map(x => x.GroupId).Not.Nullable();
        }
    }
}
